<?php $auth = Zend_Auth::getInstance(); ?>
<?php echo $this->doctype() ?>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
        <title>Admin</title>

        <!--  THEME ADMIN STYLES -->
        <link rel="stylesheet" href="<?php echo $this->baseUrl(); ?>/public/styles/admin/css/layout.css" type="text/css" media="screen" />
        <?php echo $this->headLink(); ?>

        <!--  DATATABLE JQUERY STYLES  -->
        <style type="text/css" title="currentStyle">
            @import "<?php echo $this->baseUrl(); ?>/public/styles/datatable/css/demo_page.css";
            @import "<?php echo $this->baseUrl(); ?>/public/styles/datatable/css/demo_table_jui.css";
            @import "<?php echo $this->baseUrl(); ?>/public/styles/datatable/css/jquery-ui-1.8.4.custom.css";
        </style>

        <!--  STEPY JQUERY STYLES  -->
        <link type="text/css" rel="stylesheet" href="<?php echo $this->baseUrl(); ?>/public/styles/stepy/jquery.stepy.css" />

        <!--  VALIDATE JQUERY STYLES  -->
        <link rel="stylesheet" type="text/css" media="screen" href="<?php echo $this->baseUrl(); ?>/public/styles/jqueryvalidate/css/screen.css" />
        
        <!--  AUTOCOMPLETE JQUERY STYLES  -->
        <link rel="stylesheet" href="<?php echo $this->baseUrl(); ?>/public/styles/facelist/css/jquery.autocomplete.css" type="text/css" media="screen" />

        
        
        <!--  JQUERY SCRIPT  -->
        <script type="text/javascript" language="javascript" src="<?php echo $this->baseUrl(); ?>/public/scripts/jquery.js"></script>

        <!--  DATATABLE JQUERY SCRIPT  -->
        <script type="text/javascript" language="javascript" src="<?php echo $this->baseUrl(); ?>/public/scripts/datatable/jquery.dataTables.min.js"></script>

        <!--  VALIDATE JQUERY SCRIPT  -->
        <script type="text/javascript" language="javascript" src="<?php echo $this->baseUrl(); ?>/public/scripts/jqueryvalidate/jquery.validate.js"></script>

        <!--  JQUERY FORM SCRIPT  -->
        <script type="text/javascript" language="javascript" src="<?php echo $this->baseUrl(); ?>/public/scripts/jqueryvalidate/jquery.form.js"></script>

        <!--  JQUERY STEPY SCRIPT  -->
        <script type="text/javascript" src="<?php echo $this->baseUrl(); ?>/public/scripts/stepy/jquery.stepy.js"></script>

        <!--   JQUERY TOOL TIP SCRIPT     -->
        <script type="text/javascript" src="<?php echo $this->baseUrl(); ?>/public/scripts/jquerytools/jquery.tools.min.js"></script>

        <!--  GOOGLE API CHART -->
        <script type="text/javascript" src="https://www.google.com/jsapi"></script>

        <!--  JQUERY AUTOCOMPLETE -->
        <script type="text/javascript" src="<?php echo $this->baseUrl(); ?>/public/scripts/facelist/jquery.autocomplete.js"></script>

        <?php echo $this->headScript() ?>

    </head>
    <body>
        <header id="header">
            <hgroup>
                <h1 class="site_title"><a href="index.html">Administrador de Proyectos</a></h1>
                <h2 class="section_title">
                    <img src="<?php echo $this->baseUrl(); ?>/public/styles/admin/images/logos.png"/>
                </h2>
            </hgroup>
        </header> <!-- end of header bar -->

        <section id="secondary_bar">
            <div class="user">
                <p><?php echo $auth->getIdentity()->nombre . ' ' . $auth->getIdentity()->apellidos; ?></p>
                <!-- <a class="logout_user" href="#" title="Logout">Logout</a> -->
            </div>
            <div class="breadcrumbs_container">
                <!--article class="breadcrumbs"><a href="index.html">Website Admin</a> <div class="breadcrumb_divider"></div> <a class="current">Dashboard</a></article-->
            </div>
        </section><!-- end of secondary bar -->

        <aside id="sidebar" class="column">
            <hr/>
            <!-- ejemplo de helper -->
            <div>
                <?php echo $this->Menu($this->baseUrl()); ?>
            </div>

            <footer>
                <hr />
                <p><strong>Copyright &copy; 2012 Website Admin</strong></p>
                <p>Author by <a href="http://www.velcro.com.bo">Velcro</a></p>
            </footer>
        </aside><!-- end of sidebar -->

        <section id="main" class="column">

            <!-- begin of all messages -->
            <div class="message success" id="msg_success" style="display: none">
                <h4 class="alert_success"></h4>
            </div>
            <div class="message error" id="msg_error" style="display: none">
                <h4 class="alert_error"></h4>
            </div>

            <?php $flashMessenger = Zend_Controller_Action_HelperBroker::getStaticHelper('FlashMessenger'); ?>

            <?php if ($flashMessenger->setNamespace('success')->hasMessages()): ?>
                <div class="message success">
                    <?php foreach ($flashMessenger->getMessages() as $msg): ?>
                        <h4 class="alert_success"><?php echo $msg ?></h4>
                    <?php endforeach; ?>
                </div>
            <?php endif; ?>

            <?php if ($flashMessenger->setNamespace('error')->hasMessages()): ?>
                <div class="message error">
                    <?php foreach ($flashMessenger->getMessages() as $msg): ?>
                        <h4 class="alert_error"><?php echo $msg ?></h4>
                    <?php endforeach; ?>
                </div>
            <?php endif; ?>
            <!-- end of all messages -->

            <?php echo $this->layout()->content ?>
        </section>        
    </body>
</html>